import { Http } from '@/common/api'

// 仓库信息-列表
export const warehouseListUrl = '/srm/warehouse/addr/page'

// 仓库信息-新增
export const apiWarehouseAdd = async (data) => Http.post('/srm/warehouse/addr/add', data)
// 仓库信息-修改
export const apiWarehouseUpdate = async (data) => Http.put('/srm/warehouse/addr/update', data)
// 仓库信息-删除
export const apiWarehouseDelete = async (id) => Http.delete(`/srm/warehouse/addr/delete?id=${id}`)
// 仓库信息-列表
export const purchasingOrgListUrl = '/srm/purchase/org/page'

// 采购组织-新增
export const apiPurchasingOrgAdd = async (data) => Http.post('/srm/purchase/org/add', data)
// 采购组织-修改
export const apiPurchasingOrgUpdate = async (data) => Http.put('/srm/purchase/org/update', data)
// 采购组织-删除
export const apiPurchasingOrgDelete = async (id) => Http.delete(`/srm/purchase/org/delete?id=${id}`)

// 采购组-列表
export const purchasingGroupListUrl = '/srm/purchase/team/page'

// 采购组-新增
export const apiPurchasingGroupAdd = async (data) => Http.post('/srm/purchase/team/add', data)
// 采购组-修改
export const apiPurchasingGroupUpdate = async (data) => Http.put('/srm/purchase/team/update', data)
// 采购组-删除
export const apiPurchasingGroupDelete = async (id) => Http.delete(`/srm/purchase/team/delete?id=${id}`)
